Skip to content

Commit

Permalink
NSProcessInfo: get UTF-8 string of LocaleList jstring instead of Loca…
Browse files Browse the repository at this point in the history
…leId
  • Loading branch information
hmelder committed Dec 2, 2024
1 parent 9cdb4f9 commit 38235cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/NSProcessInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ - (void) performExpiringActivityWithReason: (NSString *)reason
jstring localeListJava = (*env)->CallObjectMethod(env, localeListObj, localeListToLanguageTagsMethod);
GS_JNI_CHECK(env, localeListJava);

const char *localeListOrig = (*env)->GetStringUTFChars(env, localeIdJava, NULL);
const char *localeListOrig = (*env)->GetStringUTFChars(env, localeListJava, NULL);

// Some devices return with it enclosed in []'s so check if both exists before
// removing to ensure it is formatted correctly
Expand Down

0 comments on commit 38235cc

Please sign in to comment.